package com.disease.api.service.service;

import com.disease.api.service.entity.Region;
import com.disease.api.service.mapper.RegionMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class RegionService {

    @Autowired
    RegionMapper regionMapper;

    /**
     * 根据名称查询地区信息
     * @param address
     * @return
     */
    public List<Region> queryRegionByName(String address){
        return regionMapper.findRegionByAddress(address);
    }

}
